Learn how to send usage events to Flexprice for metered billing
Event ingestion is the core mechanism that powers Flexprice’s metered billing system. It enables you to transmit usage data from your application to Flexprice, which then automatically calculates charges and generates invoices based on your pricing plans.
When you have a Metered Feature in Flexprice (such as API calls, storage usage, or credits consumed), you need to inform Flexprice when and how much your customers are utilizing that feature. This is accomplished by transmitting events - JSON payloads that describe usage activity.
This guide will walk you through the complete event ingestion workflow, from setting up your first metered feature to viewing charges on customer invoices. By the end, you’ll understand: